<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>微博</title>
    <link href="style/weibo.css" rel="stylesheet" type="text/css"/>
    <script src="lib/react.development.js"></script>
    <script src="lib/react-dom.development.js"></script>
    <script src="lib/babel.min.js"></script>
    <script src="node_modules/axios/dist/axios.min.js"></script>
</head>

<body>
<div class="jyArea">

</div>
</body>
<script type="text/babel" src="./components/TakeComment.jsx"></script>
<script type="text/babel" src="./components/CommentOn.jsx"></script>
<script type="text/babel" src="./components/PageList.jsx"></script>
<script type="text/babel" src="./components/App.jsx"></script>
<script type="text/babel">
    axios.defaults.baseURL = "http://192.168.12.31:8081";
    axios.interceptors.response.use(res=>{
        const {ok,msg} = res.data;
        if(ok === -1){
            alert(ok);
            return new Promise(()=>{});
        }
        return res.data;
    })
    React.Component.prototype.$axios  = axios;
    ReactDOM.createRoot(document.querySelector(".jyArea")).render(<App/>)
</script>
</html>
